<?php
	header("Location:/");
	die();
	require_once("fta.201003310000/fta.php");
	fta_registerModules(
		array(
		"cms.201003310000/config/cmsConfig",//we will deprecate the old cms config soon..
		"site/fta/config",
		"site/components/MAIArtworks",
	));	
	
	function renderArtworksListItem($item){
		
		$detailUrl = urlFragmentClean($item->title);
		
		if(strlen($item->extra11) > 0){
		?>
		<div class="artwork-thumb"><a href="/Artworks-For-Sale/<?php echo $detailUrl; ?>/"><img src="/html/blob.php?documentCode=<?php echo $item->documentcode; ?>&elementId=20200&filetypecode=2" /></a></div>
		<?php
		}  /* else {
		?>
			<div class="artwork-thumb"><a href="/Artworks-For-Sale/<?php echo $detailUrl; ?>/"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
		<?php
		} */
		?>
		
                <div class="artwork-blurb">
                    <h4><a href="/Artworks-For-Sale/<?php echo $detailUrl; ?>/"><?php echo $item->title; ?></a></h4>
                    <div class="price">$<?php echo $item->extra14; ?></div>
                    <a class="view-detail" href="/Artworks-For-Sale/<?php echo $detailUrl; ?>/">Details</a>		
                </div>
		
		<?php 
		
	}
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="Mairangi, Arts, Centre, MAC, North Shore, Auckland, New Zealand, education, art classes, exhibitions" />
<meta name="Description" content="Mairangi Arts Centre (MAC) was initiated several years after a group of East Coast Bays residents saw the need for an arts centre in their area. Opened in May 1991, after more than ten years of fundraising, the main gallery, café and office area are housed in the old Mairangi War Memorial Hall (opened 1953). The building ,once used as the headquarters for a local soccer club, after extensive refurbishment, was transformed into a light and spacious environment." />

<title>Artwork for Sale | Mairangi Arts Centre</title>

<?php include ("includes/external-files.php"); ?>

    
<?php include ("includes/analytics.php"); ?>   
</head>

<body id="artwork" class="">



<?php include ("includes/head.php"); ?>





<div id="container">


	<div id="content">
    	
        <h1>Artworks for sale</h1>
        
        	
        <div id="retailShop">
        <h2>Gallery Retail Shop</h2>
        <?php echo mai_renderArtworkList('2341');  ?>
        </div>
        <div id="exhibitionArtworks">
        <h2>Exhibition Artworks</h2>
        <?php echo mai_renderArtworkList('2342');  ?>
        </div>
        <?php /* ?>
        <ul id="artwork-list">
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
            <li>
                <div class="artwork-thumb"><a href="/html/artwork-detail.php"><img src="http://placehold.it/185x140/e5e5e5&text=Artwork" /></a></div>
                <div class="artwork-blurb">
                    <h4><a href="/html/artwork-detail.php">Artwork Title to go here</a></h4>
                    <div class="price">$135</div>
                    <a class="view-detail" href="/html/artwork-detail.php">Details</a>		
                </div>
            </li>
        </ul>
         <?php */ ?>           

        
        
        
    
    
    
    	<div id="supplementary-content">
            

            
        </div><!-- Supplementary-content ends -->



    </div><!-- Content ends -->








    
</div><!-- Container ends -->





<?php include ("includes/foot.php"); ?>





</body>

</html>
